package com.hamizhong.iflowers.db.dao.hibernate;

import java.util.List;

import com.hamizhong.iflowers.db.dao.base.MyBaseDao;
import com.hamizhong.iflowers.db.entity.Orders;

public interface IOrdersDao extends MyBaseDao<Orders, Integer> {

	List<Orders> findByStateAndUserId(Integer orderState, Integer userId, Integer pageNum, Integer pageSize);

	List<Orders> findByState(Integer orderState, Integer pageNum, Integer pageSize);

	int findTotalOrdersCntByOrderState(Integer orderState);

	int findTotalOrdersCntByOrderStateAndUserId(Integer orderState, Integer userId);

}
